package com.cy.demo523.untitled2.src.com.cy.view;

import java.util.Scanner;

public class Indexview {
    public void IndexView() {
    }

    public void indexView() {
        System.out.println("请选择相应操作");
        System.out.println("1.个人信息界面");
        System.out.println("2.查看商品信息");
        System.out.println("3.查看订单信息");
        Scanner scanner = new Scanner(System.in);
        int choice = scanner.nextInt();
        switch (choice) {
            case 1:
                System.out.println("个人信息界面");
                break;
            case 2:
                System.out.println("商品信息界面");
                break;
            case 3:
                System.out.println("订单信息界面");
        }

    }
}
